function match=MatchPoint2(C1,C2,ratio)
    origin_locations=C1.Location;
    match_locations=C2.Location;
    move_locations=origin_locations*ratio;
    size_locations=size(move_locations);
    size_locations2=size(match_locations);
    nums=0;
    for i=1:size_locations(1)
        check=false;
        for j=1:size_locations2(1)
            if((match_locations(j,1)-move_locations(i,1))<2&&(match_locations(j,2)-move_locations(i,2))<2)
                check=true;
                break
            end
        end
        nums=nums+check;
    end
    match=nums/size_locations(1);
end

